<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML >
<html>
<head>
<base href="<%=basePath%>">

<title></title>
<link rel="stylesheet" href="<%=basePath%>/css/result.css" type="text/css"></link>
<link rel="stylesheet" href="<%=basePath%>/css/style.css" type="text/css"></link>
<style type="text/css">
.float_left {
	list-style-type: none;
	float: left;
	width: 90px;
}
</style>
</head>

<body>
	<div style="height: 70px;"></div>
	<div class="main-div">
		<div>你好${userInfo.username }！欢迎访问微博管理系统</div>
	</div>
	<div class="main-div">
		<div style="margin-top: 30px; float: left">
			<div style="line-height: 30px">
				<a href="blog/findBlog?id=+${userInfo.id}+&pagesize=5&indexpage=1">微博管理</a>
			</div>

			<c:if test="${userInfo.supper eq 0 }">
				<div style="line-height: 30px">
					<a href="<%=basePath%>/jsp/editAccount.jsp">账户管理 </a>
				</div>
			</c:if>
			<c:if test="${userInfo.supper eq 1 }">
				<a href="users/findAll?pagesize=5&indexpage=1">账户管理 </a>
			</c:if>
		</div>
		<div style="margin-top: 30px; float: left;margin-left: 50px">
			<h4>个人账户</h4>
			<form action="users/add" method="post">
				<div style="margin-top: 30px; margin-left: 200px">
				<input type="hidden"  value="${userInfo.id}" name="id">
					<p ><label>用户名：</label><input type="text" value="" name="username" /></p>
					<p style="margin-top: 20px;"><label>&nbsp;密码：</label><input type="text" value="" name="password" /></p>
					<p style="margin-top: 20px;"><label>&nbsp;昵称：</label><input type="text" value="" name="nickname" /></p> 
					<p style="margin-top: 20px;"><label>&nbsp;年龄：</label><input type="text" value="" name="age" /></p>
					<p style="margin-top: 20px;"><label>&nbsp;性别：</label><select name="sex">
							<option>--请选择--</option>
							<option value="男">男</option>
							<option value="女" >女</option>
						</select>
					<p style="margin-top: 20px;"><label>&nbsp;手机：</label><input type="text" value="" name="mobile" /></p>
					<p style="margin-top: 20px;"><label>&nbsp;地址：</label><input type="text" value="" name="address" /></p>
					<p style="margin-top: 20px;"><label>&nbsp;头像：</label><input type="text" value="" name="picpath" /><input type="button" value="浏览。。。" /></p>
				</div>
				<div style="margin-top: 30px;margin-left: 230px">
					<input type="submit" value="保存数据" />
					<input type="button" value="返回" />
				</div>
			</form>
		</div>
	</div>
</body>
</html>
